
$(document).ready(function () {

	// 初始化加载更换广场
	var gcId = $('#selectedGcString').val();
	// 循环已经选择的广场id默认选中
	var gcList = gcId.split(",");
	for ( var i = 0; i < gcList.length; i++) {
		selectedId.push(gcList[i]);
		// 修改样式使选中
		$('#' + gcList[i]).children().removeClass("hide");
		$('#selected' + gcList[i]).children().removeClass("hide");
	}
	$("#guojiaCombo>option").remove();
	$('#guojiaCombo').html("<option value='-1'>请选择</option>");
	var guojiaList = eval($('#guojia').val());
	for ( var i = 0; i < guojiaList.length; i++) {
		$(
				"<option value=" + guojiaList[i].siteid + ">"
						+ guojiaList[i].sitename + "</option>").appendTo(
				$('#guojiaCombo'));
	}

})
